//
//  failurePartsModel.m
//  ProjectforHDX
//
//  Created by motom on 16/8/12.
//  Copyright © 2016年 H.DX. All rights reserved.
//

#import "failurePartsModel.h"

@interface FailurePartsModel()



@end

@implementation FailurePartsModel

+(NSMutableArray *)failurePartsWithArray:(NSArray *)array
{
    NSMutableArray *mu = [[NSMutableArray alloc]init];
    for (int i =0; i<array.count; i++) {
        NSDictionary *dic = array[i];
        FailurePartsModel *model = [[FailurePartsModel alloc]init];
        [model setValuesForKeysWithDictionary:dic];
//        model.rating = @"3";
        [mu addObject:model];
    }
    return mu;
}

-(void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    if ([key isEqualToString:@"id"]) {
        self.faultid = value;
    }
}

@end
